home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Big Mouth 10
/
Big_Mouth_The_10_1996_-_Side_B.d64
/
23 matches
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
66 lines
10 rem ** 23 matches **
20 poke 53280,5:poke 53281,11
30 a=rnd(-ti)
40 print"[147][155]"tab(15)"23 matches"
50 printtab(8)"by sonic the immortal "
99 :
100 print"when it is your turn, you may take one,"
110 print"two or three matches. the object of the"
120 print"game is not to have to take the last match."
140 print"lets flip a coin to see who goes first"
150 print"if it comes up heads, i will go first"
160 n=23
170 q=int(2*rnd(5))
180 fort=1 to 1000:next
185 if q=1 then 210
190 print"tails! you go first"
200 goto 300
210 print"heads! i win! ha ha!"
220 print"prepare to lose, sucker!"
250 print"i take 2 matches"
260 n=n-2
270 print"the number of matches is now"n
275 fort=1 to 500:next
290 print"your turn - you may take 1, 2 or 3 matches"
300 print"how many do you wish to remove??? ";
305 get a$:if a$=""then 305
310 print a$:a=val(a$)
320 if a<1 or a>3 then 430
340 n=n-a
350 print"there are now"n"matches remaining"
351 fort=1 to 500:next
352 if n=4 then 380
353 if n=3 then 383
354 if n=2 then 385
355 if n=1 then 530
356 if n<=0 then 470
360 z=4-a
370 goto 390
380 z=3
381 goto 390
383 z=2
384 goto 390
385 z=1
390 print"my turn! i remove"z"matches"
400 n=n-z
410 if n<=1 then 470
420 goto 270
429 :
430 print"very funny! dummy!!"
440 print"do you want to play or goof around???"
450 print" how many matches do you want ??? [146] ";:goto 305
469 :
470 print"you poor boob! you took the last match!"tab(52)" ** sucker!! ** "
480 print"ha ha! i beat you, sucker!"
500 print"good bye loser!"
510 goto 600
529 :
530 print"you won, well done!!"
540 print"lets play again, then i'll blow your shoes off (?? - simba)"
599 :
600 rem ** ende **
610 print"do you want 'nother game??? ";
620 get a$:if a$="y" then printa$:print"[147]":goto 140
625 if a$<>"n" then 620
630 printa$:fort=1 to 500:next:load"the main menu/bm",8,1